<%@include file="init.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    if (request.getSession().getAttribute("UsuarioLogado") != null) {
        response.sendRedirect("inicio.jsp");
    }
%>
<html>
    <head>
        <%@include file="head.jsp" %>
    </head>
    <body>
        <div id="login">
            <h3>Nuevo usuario</h3>
            <html:form action="Registro.do" method="POST">
                <table>
                    <tr>
                        <th>Email</th>
                        <td><input type="text" name="email"></td>
                    </tr>
                    <tr>
                        <th>Contraseña</th>
                        <td><input type="password" name="pass"></td>
                    </tr>
                    <tr>
                        <th>Repita Contraseña</th>
                        <td><input type="password" name="pass2"></td>
                    </tr>
                    <tr>
                        <th>Nombre</th>
                        <td><input type="text" name="nombre"></td>
                    </tr>
                    <tr>
                        <th>Apellidos</th>
                        <td><input type="text" name="apellidos"></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td><html:submit property="submit" value="Registrar"/></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td><a href="login.jsp">Volver</a></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <html:messages id="errors">
                                <bean:write name="errors" />
                            </html:messages>
                        </td>
                    </tr>
                </table>
            </html:form>
        </div>
        <div id="main-content">
            <div class="conMargenes, quitandoMargen">
                <h2>BetBoxing</h2>
                <img src="images/boxingPortada.jpg" id="imagenPortada" alt="foto" /> 
            </div>
        </div>
    </body>
</html>